package com.ruoyi.profession.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 专利信息对象 patents
 * 
 * @author 靳双伟
 * @date 2024-06-01
 */
public class Patents extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 基本信息ID（外键） */
    @Excel(name = "基本信息ID", readConverterExp = "外=键")
    private Long basicInfoId;

    /** 专利类型（0发明专利   1实用新型专利   2软著） */
    @Excel(name = "专利类型", readConverterExp = "0=发明专利,1=实用新型专利,2=软著")
    private Long patentType;

    /** 专利名称 */
    @Excel(name = "专利名称")
    private String patentName;

    /** 下发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueTime;

    /** 编号 */
    @Excel(name = "编号")
    private String patentNumber;

    /** 有无转化 */
    @Excel(name = "有无转化")
    private Long isCommercialized;

    /** PDF件 */
    @Excel(name = "PDF件")
    private String patentAttachment;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBasicInfoId(Long basicInfoId) 
    {
        this.basicInfoId = basicInfoId;
    }

    public Long getBasicInfoId() 
    {
        return basicInfoId;
    }
    public void setPatentType(Long patentType) 
    {
        this.patentType = patentType;
    }

    public Long getPatentType() 
    {
        return patentType;
    }
    public void setPatentName(String patentName) 
    {
        this.patentName = patentName;
    }

    public String getPatentName() 
    {
        return patentName;
    }
    public void setIssueTime(Date issueTime) 
    {
        this.issueTime = issueTime;
    }

    public Date getIssueTime() 
    {
        return issueTime;
    }
    public void setPatentNumber(String patentNumber) 
    {
        this.patentNumber = patentNumber;
    }

    public String getPatentNumber() 
    {
        return patentNumber;
    }
    public void setIsCommercialized(Long isCommercialized) 
    {
        this.isCommercialized = isCommercialized;
    }

    public Long getIsCommercialized() 
    {
        return isCommercialized;
    }
    public void setPatentAttachment(String patentAttachment) 
    {
        this.patentAttachment = patentAttachment;
    }

    public String getPatentAttachment() 
    {
        return patentAttachment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("basicInfoId", getBasicInfoId())
            .append("patentType", getPatentType())
            .append("patentName", getPatentName())
            .append("issueTime", getIssueTime())
            .append("patentNumber", getPatentNumber())
            .append("isCommercialized", getIsCommercialized())
            .append("patentAttachment", getPatentAttachment())
            .toString();
    }
}
